textlayout: avoid double-free when adding preedit color
authorDaiki Ueno <ueno@unixuser.org>
Wed, 3 Jul 2013 10:03:30 +0000 (19:03 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Tue, 9 Jul 2013 04:21:17 +0000 (13:21 +0900)
commit837a0d3e4002e640be2aea2a67802c474997e354
tree4b1a4f7e951ceee1b8540cff5ace7ada5cd49b05
parent50c3eb9accf7665e51820f7f95870f6280777dde
textlayout: avoid double-free when adding preedit color

In add_preedit_attrs, don't free foreground/background colors already
set in the underlying text attributes (style).  They will be free'd by
release_style.

https://bugzilla.gnome.org/show_bug.cgi?id=703533
gtk/gtktextlayout.c